import request from '@/utils/request';
// 查询中心库入账
export function insertByInvoice(startTime) {
  return request({
    url: `/system/flow/insertByInvoice?startTime=${startTime}`,
    method: 'get',
  })
}
// 查询中心库入账
export function insertByProvideRevords(startTime) {
  return request({
    url: `/system/flow/insertByProvideRevords?startTime=${startTime}`,
    method: 'get',
  })
}

export function wareList(time,provideWare) {
  return request({
    url: `/invoice/ware/list?time=${time}&provideWare=${provideWare}`,
    method: 'get',
  })
}
// 中心库导入功能
export function excelUpload2(formData, time) {
  formData.append('time', time);
  return request({
    url: `/excel/upload2`,
    method: 'post',
    data: formData,
    headers: { "Content-Type": "multipart/form-data" }
  })
}

// 导入数据
export function zxkMonthStorageInApi(data) {
  return request({
    url: `/system/order/zxkMonthStorageIn`,
    method: 'get',
    params: data
  })
}
